Skip to content

[#576] Fix ruled-paper line alignment in Markdown styles#577

Merged
realproject7 merged 1 commit intomainfrom
task/576-ruled-paper-alignment
Mar 26, 2026
Merged

[#576] Fix ruled-paper line alignment in Markdown styles#577
realproject7 merged 1 commit intomainfrom
task/576-ruled-paper-alignment

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

All vertical margins in .story-markdown rules now use multiples of var(--line-height) (28px) instead of em units (~16px) to stay aligned with the ruled-paper grid lines.

  • Headings (h1, h2): line-height: calc(var(--line-height) * 2) to span two ruled lines
  • h3: line-height: var(--line-height) for single-line fit
  • Paragraphs: margin: 0 0 var(--line-height) — one ruled line gap
  • Blockquotes, hr, lists: all margins snapped to var(--line-height)
  • List items: margin-bottom: 0 — inherit grid from parent

Fixes #576

Test plan

  • View storylines 34–42 on plotlink.xyz — text aligns with ruled lines
  • Headings, blockquotes, scene breaks all snap to grid
  • Plain text stories still render correctly
  • Build passes (npm run build)

🤖 Generated with Claude Code

All vertical margins in .story-markdown now use multiples of
var(--line-height) (28px) instead of em units (~16px) to stay
aligned with the ruled-paper grid. Headings with larger font-size
get line-height: calc(var(--line-height) * 2) to span two lines
cleanly. List item margins zeroed to inherit line-height grid.

Fixes #576

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 26, 2026 5:29pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b approves. All vertical margins correctly snapped to var(--line-height) multiples. h1/h2 double line-height for two-line spans, h3 single line-height, and list items zeroed out. Clean fix.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The markdown spacing rules now snap vertical rhythm back to the ruled-paper 28px grid. The updated margins and heading line-heights address the regression introduced by the markdown renderer without widening scope.

Findings

  • No remaining blocking issues found.

Decision

Approving because the .story-markdown spacing rules now use var(--line-height) multiples as required, which restores ruled-paper alignment for markdown stories.

@realproject7 realproject7 merged commit 9e23cfa into main Mar 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ruled-paper line alignment broken by Markdown paragraph margins

2 participants